package com.project.bean;

import java.util.List;

/**
 * @author lyl
 * description:
 */
public class ProductBean {
    /**
     * 商品id
     */
    private int productId;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 商品价格
     */
    private int productPrice;
    /**
     * 商品图片
     */
    private String productImg;
    /**
     * 商品评论数量
     */
    private int count = 0;
    /**
     * 评论集合
     */
    private List<CommentBean> commentBeanList;

    public ProductBean() {
    }

    public ProductBean(String productName, int productPrice, String productImg) {
        this.productName = productName;
        this.productPrice = productPrice;
        this.productImg = productImg;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(int productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<CommentBean> getCommentBeanList() {
        return commentBeanList;
    }

    public void setCommentBeanList(List<CommentBean> commentBeanList) {
        this.commentBeanList = commentBeanList;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productPrice=" + productPrice +
                ", productImg='" + productImg + '\'' +
                ", count=" + count +
                ", commentBeanList=" + commentBeanList +
                '}' + "\n";
    }
}
